package acc.zx.Entity;

import java.time.LocalDate;

public class UsersEntity {
		private String account_id;
		private String account_desc;
		private int account_price;
		private LocalDate account_date;
		public String getAccount_id() {
			return account_id;
		}
		public void setAccount_id(String account_id) {
			this.account_id = account_id;
		}
		public String getAccount_desc() {
			return account_desc;
		}
		public void setAccount_desc(String account_desc) {
			this.account_desc = account_desc;
		}
		public int getAccount_price() {
			return account_price;
		}
		public void setAccount_price(int account_price) {
			this.account_price = account_price;
		}
		public LocalDate getAccount_date() {
			return account_date;
		}
		public void setAccount_date(LocalDate account_date) {
			this.account_date = account_date;
		}
		public UsersEntity(String account_id, String account_desc, int account_price, LocalDate account_date) {
			super();
			this.account_id = account_id;
			this.account_desc = account_desc;
			this.account_price = account_price;
			this.account_date = account_date;
		}
		public UsersEntity() {
			super();
			// TODO Auto-generated constructor stub
		}
		@Override
		public String toString() {
			return "UsersEntity [account_id=" + account_id + ", account_desc=" + account_desc + ", account_price="
					+ account_price + ", account_date=" + account_date + "]";
		}
		@Override
		public int hashCode() {
			final int prime = 31;
			int result = 1;
			result = prime * result + ((account_date == null) ? 0 : account_date.hashCode());
			result = prime * result + ((account_desc == null) ? 0 : account_desc.hashCode());
			result = prime * result + ((account_id == null) ? 0 : account_id.hashCode());
			result = prime * result + account_price;
			return result;
		}
		@Override
		public boolean equals(Object obj) {
			if (this == obj)
				return true;
			if (obj == null)
				return false;
			if (getClass() != obj.getClass())
				return false;
			UsersEntity other = (UsersEntity) obj;
			if (account_date == null) {
				if (other.account_date != null)
					return false;
			} else if (!account_date.equals(other.account_date))
				return false;
			if (account_desc == null) {
				if (other.account_desc != null)
					return false;
			} else if (!account_desc.equals(other.account_desc))
				return false;
			if (account_id == null) {
				if (other.account_id != null)
					return false;
			} else if (!account_id.equals(other.account_id))
				return false;
			if (account_price != other.account_price)
				return false;
			return true;
		}
		
}
